<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script>
        // p.then()返回的新promise的结果状态由什么决定?  是一个 promise 实例对象
        let p = new Promise((resolve, reject) => {
            resolve('OK');
        });

        p.then(v => {
            console.log(11);
            return new Promise((resolve, reject) => {});
        }, r => {
            console.log(22);
        }).then(v => {
            console.log(33);
        }, r => {
            console.log(44);
        }).then(v => {
            console.log(55);
        }, r => {
            console.log(66);
        })
    </script>
</body>

</html>